;

var common_ops = {
    /*链接管理器*/
    buildUrl: function (path, param) {
        var url = path;
        var _param_url = "";
        if (param) {
            _param_url = Object.keys(param).map(function (k) {
                return [encodeURIComponent(k), encodeURIComponent(param[k])].join("=");
            }).join("&");
            _param_url = "?" + _param_url;
        }
        return url + _param_url;
    },
    /*弹窗管理器*/
    alert: function (msg, cb) {
        layer.alert(msg, {
            yes: function (index) {
                if (typeof cb == "function") {
                    cb();
                }
                layer.close(index);
            }
        });

    }
}